package com.cheng.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cheng.data.entity.AcceptInfoEntity;
import com.cheng.data.vo.StatisticsVO;

import java.util.List;
import java.util.Map;

/**
 * @author: ChengJW
 * @date: 2021/11/7 23:59
 * @version: 1.0
 * @description:
 */
public interface AcceptInfoMapper extends BaseMapper<AcceptInfoEntity> {

    /**
     * @author: ChengJW
     * @params: [entity]
     * @return: int
     * @date: 2021/9/22
     * @description: 插入数据
     */
    int insertAcceptInfo(AcceptInfoEntity entity);

    /**
     * @author: ChengJW
     * @params: [map]
     * @return: java.util.List<com.cheng.data.entity.AcceptBaseInfoEntity>
     * @date: 2021/9/22
     * @description: 根据条件查询 acceptBaseInfo 信息
     */
    List<AcceptInfoEntity> selectAcceptInfoList(Map<String,Object> map);

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: java.util.List<com.cheng.data.vo.StatisticsVO>
    * @date: 2021/12/20
    * @description: 统计单个机关受理信息
    */
    List<StatisticsVO> queryStatisticsAcceptListByCode(Map<String,Object> map);

    /**
    * @author: ChengJW
    * @params: [map]
    * @return: java.util.List<com.cheng.data.vo.StatisticsVO>
    * @date: 2021/12/20
    * @description: 统计所有机关受理信息
    */
    List<StatisticsVO> queryStatisticsAcceptList(Map<String,Object> map);
}
